<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/resources/template/template.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:p="http://primefaces.org/ui">


    <ui:define name="content">
        <h:form>
            <p:commandButton ajax="false" 
                            action="#{roomOccupancyController.createPatientRoomVacant()}"
                             value="Fill" onclick="onSubmitButton();" />             
            <p:dataTable 
                value="#{roomOccupancyController.roomFacilityCharges}" 
                var="pr"
                paginator="true"
                paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                rowsPerPageTemplate="5,10,15"
                >
                <f:facet name="header">
                    Room Vacant Detail
                </f:facet>
                 
                <p:column headerText="Room">
                    #{pr.room.name}                    
                </p:column>
                
                <p:column headerText="Category">
                    #{pr.roomCategory.name}                   
                </p:column>
                
                <p:column headerText="Department">
                    #{pr.department.name}                    
                </p:column>
                
<!--                <p:column headerText="Chargers for 24">
                    #{(pr.linenCharge)+
                      ((pr.adminstrationCharge + pr.maintananceCharge
                      + pr.medicalCareCharge + pr.roomCharge
                      + pr.nursingCharge + pr.moCharge)*8)}                    
                </p:column>-->

                <p:column headerText="Room Chargers for 24">
                    #{pr.roomCharge*8}                    
                </p:column>
                
            </p:dataTable>



        </h:form>
    </ui:define>

</ui:composition>
